home *** CD-ROM | disk | FTP | other *** search
-
-
-
- VVVVLLLLAAAANNNN____CCCCMMMMDDDD VVVVLLLLAAAANNNN____CCCCMMMMDDDD
-
-
-
- NNNNAAAAMMMMEEEE
- vlan_cmd -
-
- DDDDEEEEFFFFIIIINNNNIIIITTTTIIIIOOOONNNN
- A generic VLAN command interface. A VLAN command string is passed in. The
- command string is expected to be a valid, capitalized, two character VLAN
- command with additional parameter characters as required by the command.
- The string must be NULL terminated. Since the VLAN communication protocol
- requires commands to be terminated with a carriage return character
- instead of a NULL, this function sends a carriage return to the VLAN
- controller in place of the NULL character. A pointer to the VLAN response
- string is returned. If no values are to be returned, a string consisting
- of a single carriage return and the NULL character is returned. Of a
- return value is expected, it is returned as a NULL terminated string with
- the carriage return stripped off. If a VLAN error occurs (eg. command
- syntax), the error response string is returned (with the CR stripped).
- _v_l_a_n__e_r_r_n_o is not set since no host side error has occurred.
-
- CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
- char *vlan_cmd( _V_L_A_N__D_E_V
- *vlanptr,char *cmd)
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
- Name Type I/O Description
- vlanptr VLAN_DEV * I pointer to vlan device
- cmd char * I VLAN command character stringi (NULL terminated).
-
- VVVVAAAALLLLUUUUEEEE RRRREEEETTTTUUUURRRRNNNNEEEEDDDD
- If a non-VLAN error occurs, NULL is returned and _v_l_a_n__e_r_r_n_o is set.
- Otherwise a pointer to the VLAN response string is returned. If a VLAN
- error has occurred, this will be indicated by the response string. The
- response string returned, if any, should be copied to a user buffer
- before the next VLAN command is issued since the response will be
- overwritten by the new command's response.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-